package com.linsen.core.common.exception;

import com.linsen.core.common.model.LimitMeta;
import lombok.Getter;

/**
 * @author zhaoyong
 * @date 2023/3/28
 */
@Getter
public class LimitException extends RuntimeException {
    private Long expire;

    private LimitMeta meta;

    public LimitException(String message) {
        super(message);
    }

    public LimitException(String message, Long expire, LimitMeta meta) {
        super(message);
        this.expire = expire;
        this.meta = meta;
    }
}
